package br.com.fatecpg.apphoroscopo.utils;

public class UrlUtils {

	public enum Signos {
		ARIES(0),
		TOURO(1),
		GEMEOS(2),
		CANCER(3),
		LEAO(4),
		VIRGEM(5),
		LIBRA(6),
		ESCORPIAO(7),
		SAGITARIO(8),
		CAPRICORNIO(9),
		AQUARIO(10),
		PEIXES(11);
		
		private int codigo;
		
		Signos(int codigo) {
			this.codigo = codigo;
		}
		
		public int getCodigo() {
			return codigo;
		}
	}

	//constantes
	private final String urlAries = "http://horoscoposdodia.net/carneiro";
	private final String urlTouro = "http://horoscoposdodia.net/touro";
	private final String urlGemeos = "http://horoscoposdodia.net/g%C3%A9meos";
	private final String urlCancer = "http://horoscoposdodia.net/carangueijo";
	private final String urlLeao = "http://horoscoposdodia.net/le%C3%A3o";
	private final String urlVirgem = "http://horoscoposdodia.net/v%C3%ADrgem";
	private final String urlLibra = "http://horoscoposdodia.net/balan%C3%A7a";
	private final String urlEscorpiao = "http://horoscoposdodia.net/escorpi%C3%A3o";
	private final String urlSagitario = "http://horoscoposdodia.net/sagit%C3%A1rio";
	private final String urlCapricornio = "http://horoscoposdodia.net/capric%C3%B3rnio";
	private final String urlAquario = "http://horoscoposdodia.net/aqu%C3%A1rio";
	private final String urlPeixes = "http://horoscoposdodia.net/peixes";
	
	public String getSignoUrl(int codSigno) {
		String retorno = "";
		
		if (codSigno == Signos.ARIES.getCodigo()) {
			retorno = urlAries;
		} else if (codSigno == Signos.TOURO.getCodigo()) {
			retorno = urlTouro;
		} else if (codSigno == Signos.GEMEOS.getCodigo()) {
			retorno = urlGemeos;
		} else if (codSigno == Signos.CANCER.getCodigo()) {
			retorno = urlCancer;
		} else if (codSigno == Signos.LEAO.getCodigo()) {
			retorno = urlLeao;
		} else if (codSigno == Signos.VIRGEM.getCodigo()) {
			retorno = urlVirgem;
		} else if (codSigno == Signos.LIBRA.getCodigo()) {
			retorno = urlLibra;
		} else if (codSigno == Signos.ESCORPIAO.getCodigo()) {
			retorno = urlEscorpiao;
		} else if (codSigno == Signos.SAGITARIO.getCodigo()) {
			retorno = urlSagitario;
		} else if (codSigno == Signos.CAPRICORNIO.getCodigo()) {
			retorno = urlCapricornio;
		} else if (codSigno == Signos.AQUARIO.getCodigo()) {
			retorno = urlAquario;
		} else if (codSigno == Signos.PEIXES.getCodigo()) {
			retorno = urlPeixes;
		}
		
		return retorno;
	}
	
}
